package com.quanyan.place.entity.apiresp;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Kingson.chan on 2016/5/27 0027.
 */
public class RespProductUnitInfo implements Serializable {
    private String saleId;
    private Integer categoryId;
    private String placeUnitName;
    private BigDecimal price;
    private BigDecimal memberPrice;
    private String startTime;
    private String endTime;
    private Date date;
    private String categoryName;
    private Date createTime;
    private Date detailsTime;
    private Integer ticketCount;

    public Date getDetailsTime() {
        return detailsTime;
    }

    public void setDetailsTime(Date detailsTime) {
        this.detailsTime = detailsTime;
    }

    public BigDecimal getMemberPrice() {
        return memberPrice;
    }

    public void setMemberPrice(BigDecimal memberPrice) {
        this.memberPrice = memberPrice;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getSaleId() {
        return saleId;
    }

    public void setSaleId(String saleId) {
        this.saleId = saleId;
    }

    public String getPlaceUnitName() {
        return placeUnitName;
    }

    public void setPlaceUnitName(String placeUnitName) {
        this.placeUnitName = placeUnitName;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }



    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Integer getTicketCount() {
        return ticketCount;
    }

    public void setTicketCount(Integer ticketCount) {
        this.ticketCount = ticketCount;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        RespProductUnitInfo that = (RespProductUnitInfo) o;

        if (placeUnitName != null ? !placeUnitName.equals(that.placeUnitName) : that.placeUnitName != null)
            return false;
        return !(startTime != null ? !startTime.equals(that.startTime) : that.startTime != null);

    }

    @Override
    public int hashCode() {
        int result = placeUnitName != null ? placeUnitName.hashCode() : 0;
        result = 31 * result + (startTime != null ? startTime.hashCode() : 0);
        return result;
    }
}
